package com.feicheng.common.constant;

public class Constant {

    public static class HTTP {
        public static class REQUEST {
            public static final String QU = "?";
            public static final String EQ = "=";
            public static final String AD = "&";
        }
    }

    public static class WX {
        public static class PARAM {
            public static final String PHONE_CODE = "phone_code";
            public static final String CODE = "code";
            public static final String APPID = "appid";
            public static final String SECRET = "secret";
            public static final String GRANT_TYPE = "grant_type";
            public static final String JS_CODE = "js_code";
            public static final String REFRESH_TOKEN = "refresh_token";
            public static final String ACCESS_TOKEN = "access_token";
            public static final String EXPIRES_IN = "expires_in";
            public static final String SCOPE = "scope";
            public static final String OPENID = "openid";
            public static final String LANG = "lang";
            public static final String OPEN_ID = "open_id";
            public static final String AUTHORIZATION_CODE = "authorization_code";
        }

        public static class VALUE {
            public static final String ZH_CN = "ZH_CN";
            public static final String AUTHORIZATION_CODE = "authorization_code";
        }

        public static class RESPONSE {
            public static final String OPENID = "openid";
            public static final String REFRESH_TOKEN = "refresh_token";
            public static final String ACCESS_TOKEN = "access_token";
            public static final String EXPIRES_IN = "expires_in";
            public static final String SCOPE = "scope";
            public static final String ERRCODE = "errcode";
            public static final String ERRMSG = "errmsg";
            public static final String NICK_NAME = "nickname";
            public static final String SEX = "sex";
            public static final String PROVINCE = "province";
            public static final String CITY = "city";
            public static final String COUNTRY = "country";
            public static final String HEAD_IMG_URL = "headimgurl";
            public static final String PRIVILEGE = "privilege";
            public static final String UNIONID = "unionid";
            public static final String USER_INFO = "user_info";
            public static final String PHONE_INFO = "phone_info";
            public static final String PURE_PHONE_NUMBER = "purePhoneNumber";
        }

    }

    public static class RESULT {
        public static final String SUCCESS = "SUCCESS";
        public static final String ERROR = "ERROR";
        public static final String FAIL = "FAIL";
        public static final String BIND_FAIL = "BIND_FAIL";
        public static final String NOT_LOGIN = "NOT_LOGIN";
        public static final String STATUS = "STATUS";
        public static final String MESSAGE = "MESSAGE";
        public static final String DATA = "DATA";
        public static final String CURRENT = "CURRENT";
        public static final String CURRENT_CLIENT = "CURRENT_CLIENT";


        public static class USER {
            public static final String USER = "user";
        }

        public static class ROLE {
            public static final String ROLE = "role";
            public static final String ROLES = "roles";
        }

        public static class PERMISSION {
            public static final String PERMISSIONS = "permissions";
        }

    }

    public static class LOGIN_TYPE {
        public static final String AP = "AP";
        public static final String TM = "TM";
        public static final String WX_Q_CODE = "WX_Q_CODE";
        public static final String WX_JSCODE = "WX_CODE";

    }

    public static class ENTITY {

        public static class USER {
            public static final String TABLE = "user";
            public static final String USER_ID = "user_id";
            public static final String ACCOUNT = "account";
            public static final String PASSWORD = "password";
            public static final String TEL = "tel";
            public static final String SALT = "salt";
            public static final String SEC_ID = "sec_id";
            public static final String OPEN_ID = "open_id";
            public static final String ROLES = "roles";
        }

        public static class ROLE {
            public static final String TABLE = "role";
            public static final String ROLE_CODE = "role_code";
            public static final String NAME = "name";
            public static final String A_FLG = "a_flg";
        }

        public static class PERMISSION {
            public static final String TABLE = "permission";
            public static final String CODE = "code";
            public static final String TYPE = "type";
            public static final String A_FLG = "a_flg";
            public static final String M_FLG = "m_flg";
            public static final String NAME = "name";
            public static final String PATH = "path";
            public static final String P_CODE = "p_code";
            public static final String SORT = "sort";
            public static final String ICON = "icon";
            public static final String PERMISSIONS = "permissions";
        }

        public static class CLIENT {
            public static final String TABLE = "client";
            public static final String OPEN_ID = "open_id";
        }
        

    }

}
